<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>ha</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

        <script>
            $(document).ready(function(){
                alert("hi");
                $(document.body).click(function () {
                    $("div").each(function (i) {
                        if (this.style.color != "blue") {
                            this.style.color = "blue";
                        } else {
                            this.style.color = "";
                        }
                    });
                });
            });
        </script>
        <style>
            div { color:red; text-align:center; cursor:pointer;
                  font-weight:bolder; width:300px; }
        </style>
    </head>
    <body>
        <div>Click here</div>
        <div>to iterate through</div>
        <div>these divs.</div>
    </body>
</html>